#pragma once

using namespace swegl;

class myIDirect3DVertexBuffer9 : public IDirect3DVertexBuffer9
{
public:
    SWEGL_DXWRAPPER_DECLARE_IUNKNOWN(myIDirect3DVertexBuffer9, IDirect3DVertexBuffer9);
	SWEGL_DXWRAPPER_DECLARE_RESOURCE(myIDirect3DVertexBuffer9, IDirect3DVertexBuffer9);

    HRESULT __stdcall Lock(UINT OffsetToLock,UINT SizeToLock,void** ppbData,DWORD Flags);
    HRESULT __stdcall Unlock();
    HRESULT __stdcall GetDesc(D3DVERTEXBUFFER_DESC *pDesc);


	myIDirect3DVertexBuffer9(swegl::VertexBuffer *vb);
	~myIDirect3DVertexBuffer9();

//private:
	swegl::VertexBuffer *m_vb;
};
